package com.nanbei.eduService.client;

import com.nanbei.commonUntil.R;
import com.nanbei.eduService.entity.UcenterMember;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;

import javax.servlet.http.HttpServletRequest;

@Component
@FeignClient(name = "service-ucenter",fallback = UCenterClientHystrix.class )
public interface UCenterClient {


    /**
     * 根据token获取用户信息
     * @param request
     * @return
     */
    @GetMapping("/eduUcenter/centerMember/userInfoVo")
    public UcenterMember userInfoVo(HttpServletRequest request);
}
